package componentManager;
import org.w3c.dom.Node;



public class NoeudResult {
	
	private double similarite=0;
	private int freq=0;
	private double tf=0;
	private double idf=0;
	private double env=0;
	private String path;
	private String label;
	private Node node;
	private int idElem;
	private Doc doc;
	private static int e = 990000000;
	
	public NoeudResult(){
		
	}
	
//	public int hashCode() { return e++; }
//	public boolean equals(Object o) {
//	    return (o instanceof NoeudResult)
//	      && (this.doc.getNomDoc().equalsIgnoreCase(((NoeudResult)o).getDoc().getNomDoc())
//	    		  && this.getPath().equalsIgnoreCase(((NoeudResult)o).getPath()));
//	}
	
	public String toString(){
		return "\n"+this.doc+" "+this.label+"["+this.path+"][tf*idf="+this.tf*this.idf+"] [env="+this.env+"]\n";
	}
	
	
	
	
	
	public double getSimilarite() {
		return similarite;
	}

	public void setSimilarite(double similarite) {
		this.similarite = similarite;
	}

	public double getEnv() {
		return env;
	}

	public void setEnv(double env) {
		this.env = env;
	}

	public Doc getDoc() {
		return doc;
	}

	public void setDoc(Doc nomDoc) {
		this.doc = nomDoc;
	}

	public int getFreq() {
		return freq;
	}
	public void setFreq(int score) {
		this.freq = score;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public Node getNode() {
		return node;
	}
	public void setNode(Node node) {
		this.node = node;
	}

	
	
	public double getTf() {
		return tf;
	}

	public void setTf(double tf) {
		this.tf = tf;
	}

	public double getIdf() {
		return idf;
	}

	public void setIdf(double idf) {
		this.idf = idf;
	}

	public int getIdElem() {
		return idElem;
	}

	public void setIdElem(int idElem) {
		this.idElem = idElem;
	}
	
	
	
	

}
